package com.aliyun.oss;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(AliyunOssPropreties.class)
public class AliyunOssAutoConfig {
    @Bean
    public AliyunUtils aliyunUtils(AliyunOssPropreties aliyunOssPropreties){
        AliyunUtils aliyunUtils = new AliyunUtils();
        aliyunUtils.setAliyunOssPropreties(aliyunOssPropreties);
        return aliyunUtils;
    }
}
